﻿<div id="header">
    <div class="container">
        <div class="header_left"><span class="icon glyphicon glyphicon-phone"></span> <a href="#">手机<span class="hidden-xs hidden-sm">移动客户端</span></a></div>


        <?php
        if (isset($_SESSION['usersid'])){
            ?>
            <div class="header_right"> <span class="hidden-xs">您好!</span>
        	<span class="f">
            <?php echo $_SESSION['nickname'] . "({$_SESSION['usersid']})" ?>

            </span>
                <a href="member.php" class="ti">我的账户</a> <span class="hidden-sm hidden-xs">咖啡豆: <span id="dou" class="f dou"><?php echo Trans($_SESSION['points'])?></span></span> | <span class="hidden-sm hidden-xs">银行: <span class="f dou"><?php echo Trans($_SESSION['bankpoints'])?></span> | </span><a href="slogin.php?act=logout" >退出</a> </div>
            <?php
        }else{
            ?>
            <div class="header_right">
                <span class="hidden-sm hidden-xs">您好! 欢迎使用幸运28投注平台,请先</span>
                <a id="login-btn" href="login.php">登陆</a> |
                <a href="reg.php">注册</a>
            </div>
            <?php
        }
        ?>
        <!--<style type="text/css">
            .zhe-wrap {
                width: 100%;
             height: 100%;
             background-color: rgba(0,0,0,.5);
             position: absolute;
             top: 0;
             left: 0;
             z-index: 9998;
            }
            .login-wrap {
                position: absolute;
                top: 50%;
                left: 50%;
                -webkit-transform: translateX(-50%) translateY(-50%);
                -moz-transform: translateX(-50%) translateY(-50%);
                transform: translateX(-50%) translateY(-50%);
                z-index: 9999;
                width: 350px;
                height: 330px;
                background-color: #fff;
                padding: 20px;
                box-shadow: 0 0 3px #333;
            }
            .login-wrap .btn-lg {
                padding: 6px 16px;
            }
            .login-wrap dt {
                text-align: center;
            }
            .login-title {
                font-size: 22px;
             margin: 0;
             margin-bottom: 15px;
            }
            .login-dd {
                width: 80%;
                margin: 15px auto 0;
            }
            .icon-guanbi {
                position: absolute;
                top: 0;
                right: 5px;
                font-size: 25px;
                cursor: pointer;
            }
            .fl {
                float: left;
            }
            .fr {
                float: right;
            }
            .cl:after {
                content: "";
                display: table;
                clear: both;
                zoom: 1;
            }
            .w75 {
                width: 75%;
                display: inline-block;
            }
            .ptb5lr10 {
                padding: 5px 10px;
            }
            .w25 {
                width: 25%;
                display: inline-block;
            }
            .col-000 {
                color: #000;
            }
        </style>-->
    </div>
</div>
<!---->
<!--<div id="zhe-wrap" class="zhe-wrap" style="display: none;">
   			<div id="login-wrap" class="login-wrap">
		            <dl>
		                <dt>
		                	<h2 class="login-title">用户登录</h2>
		                	<span class="login-tips">欢迎来到唯一博28平台,没有账号,[ <a class="col-000" href="reg.php">去免费注册</a> ]</span>
		                </dt>
		                <dd class="login-dd">
		                    <div class="">
		                        <input type="text" class="form-control" id="username" placeholder="请输入手机号" />
		                    </div>
		                </dd>
		                <dd class="login-dd">
		                    <div class="">
		                        <input type="password" class="form-control" id="pass" placeholder="请输入密码" />
		                    </div>
		                </dd>
		                <dd class="login-dd cl">
		                    <div class="">
		                        <input type="text" class="form-control w75 fl" id="vcode" placeholder="验证码" />
		                        <span class="w25 ptb5lr10 fr"><img src="vcode.php" alt="" onclick="this.src='vcode.php?tm=' + Math.random();"  style="cursor:pointer;" /></span>
		                    </div>
		                </dd>
		                <dd class="login-dd">
		                    <input type="submit" class="btn btn-danger btn-block btn-lg" id="login" value="登陆" />
		                </dd>
		                <dd class="login-dd">
		                    <a class="col-000" href="forgetpass.php">忘记密码?</a>
		                </dd>
		            </dl>
		            <span id="close-guanbi" class="iconfont icon-guanbi"></span>
		       </div>
</div>-->
<div id="alert">
    <div class="alert alert-warning">
        <div class="container">
            <button class="close" data-dismiss="alert">&times;</button>
            <p>【新人首充送礼】新注册用户限时送礼金活动火爆开启!</p>
        </div>
    </div>
</div>

<nav class="navbar navbar-default nav_bg">
    <div class="container">
        <div class="navbar-header logo_pad">
            <a href="index.php" class="navbar-brand logo"><img src="image/logo.png" class="img-responsive" alt="幸运28投注平台"></a>
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav_list">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
        <div class="collapse navbar-collapse" id="nav_list">
            <ul class="nav navbar-nav navbar-right nav_menu">
                <li class="act-sp">
                    <i class="iconfont icon-index"></i>
                    <a href="index.php">首页</a>
                    <span></span>
                </li>
                <li>
                    <i class="iconfont icon-game"></i>
                    <a href="game.php" >游戏中心</a>
                    <span></span>
                </li>
                <li>
                    <i class="iconfont icon-active"></i>
                    <a href="active.php">优惠活动</a>
                    <span></span>
                </li>
                <li>
                    <i class="iconfont icon-userV"></i>
                    <a href="member.php">会员中心</a>
                    <span></span>
                </li>
                <li>
                    <i class="iconfont icon-tuiguang"></i>
                    <a href="goods.php">推荐好友</a>
                    <span></span>
                </li>
            </ul>
        </div>
    </div>
</nav>
<?php
$path_parts = pathinfo($_SERVER['PHP_SELF']);
//	print_r($path_parts["basename"]);
?>
<script language="javascript">
    //头部匹配激活状态页面
    $(this).ready(function(e) {
        $('#nav_list').find('li').each(function(index, element) {
            $(this).attr('title',$(this).find("a").attr('href'));
            if($(this).find("a").attr('href')=='<?=$path_parts["basename"]?>'){
                $(this).addClass('act-sp');
            }else{
                $(this).removeClass('act-sp');
            }
        });
    });
</script>









